package com.jediterm.terminal;

/**
 * Sends a response from the com.jediterm.terminal emulator.
 *
 * @author traff
 */
public interface TerminalOutputStream {
    /**
     * @deprecated use {@link #sendBytes(byte[], boolean)} instead
     */
    @Deprecated
    @SuppressWarnings("DeprecatedIsStillUsed")
    void sendBytes(byte[] response);

    /**
     * @deprecated use {@link #sendString(String, boolean)} instead
     */
    @Deprecated
    @SuppressWarnings("DeprecatedIsStillUsed")
    void sendString(final String string);

    default void sendBytes(byte[] response, boolean userInput) {
        sendBytes(response);
    }

    default void sendString(String string, boolean userInput) {
        sendString(string);
    }
}
